import request from '@/utils/request'

// 查询互通里程实测数据列表
export function listInterchangeMileageStat(query) {
  return request({
    url: '/function/InterchangeMileageStat/list',
    method: 'get',
    params: query
  })
}

// 查询互通里程实测数据详细
export function getInterchangeMileageStat(id) {
  return request({
    url: '/function/InterchangeMileageStat/' + id,
    method: 'get'
  })
}

// 新增互通里程实测数据
export function addInterchangeMileageStat(data) {
  return request({
    url: '/function/InterchangeMileageStat',
    method: 'post',
    data: data
  })
}

// 修改互通里程实测数据
export function updateInterchangeMileageStat(data) {
  return request({
    url: '/function/InterchangeMileageStat',
    method: 'put',
    data: data
  })
}

// 删除互通里程实测数据
export function delInterchangeMileageStat(id) {
  return request({
    url: '/function/InterchangeMileageStat/' + id,
    method: 'delete'
  })
}

// 导出互通里程实测数据
export function exportInterchangeMileageStat(query) {
  return request({
    url: '/function/InterchangeMileageStat/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}
